package com.yserp.project.erp.order.purchorder.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 采购订单子对象 erp_purch_order_item
 *
 * @author yserp
 * @date 2022-08-02
 */
@TableName("erp_purch_order_item")
@Data
public class PurchOrderItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 主表ID
     */
    @Excel(name = "主表ID")
    private Long mainId;

    /**
     * 采购批次
     */
    @Excel(name = "采购批次")
    private String batchNo;

    /**
     * 商品主键ID
     */
    @Excel(name = "商品主键ID")
    private Long goodsId;

    /**
     * 商品编码
     */
    @Excel(name = "商品编码")
    private String goodsCode;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodsName;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String goodsUnit;

    /**
     * 单位描述
     */
    @Excel(name = "单位描述")
    private String goodsUnitDesc;

    /**
     * 商品规格
     */
    @Excel(name = "商品规格")
    private String goodsFormat;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal price;

    /**
     * 采购数量
     */
    @Excel(name = "采购数量")
    private BigDecimal planNumber;

    /**
     * 入库数量
     */
    private BigDecimal inNumber;

    /**
     * 采购总价
     */
    @Excel(name = "采购总价")
    private BigDecimal amount;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;

}
